package com.jialanmo.zhihudaily.data;

import com.jialanmo.zhihudaily.data.model.Daily;
import com.jialanmo.zhihudaily.data.model.News;
import com.jialanmo.zhihudaily.data.model.Theme;
import com.jialanmo.zhihudaily.data.model.Themes;

import retrofit2.http.GET;
import retrofit2.http.Path;
import rx.Observable;

public interface ZhihuApi {

    @GET("themes")
    Observable<Themes> getThemes();

    @GET("news/latest")
    Observable<Daily> getLatest();

    @GET("news/before/{date}")
    Observable<Daily> getBefore(@Path("date") String date);

    @GET("theme/{themeId}")
    Observable<Theme> getTheme(@Path("themeId") int themeId);

    @GET("news/{newsId}")
    Observable<News> getNews(@Path("newsId") int newsId);
}
